<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>会员列表</title>
		<link rel="stylesheet" href="__AGENT__/css/iconfont.css" />
		<link rel="stylesheet" href="__AGENT__/css/css.css" />
	</head>

	<body>
		{include file="public/header" /}
		<div class="index_conbox">
			<div class="index_content clearfix">
				{include file="public/lefter" /}
				<div class="right">
					<!--右侧内容-->
					<div class="rigtop">
						<span class="title">推广会员</span>
					</div>
					<div class="indrig_con">
						<div class="zizh_conbox" style="padding-top: 20px;">
							<!--选项卡内容开始-->

							<div class="chax_conbox">
								<div class="chax_jiegbt clearfix">
									<div class="chax_jieg">会员总计：{$list->total();}个,累计购买鼓励金:{$total_cz}￥</div>
									<div class="chax_xzbtnbox">
										<a href="#" onclick="check()"><i class="iconfont icon-daochu"></i>导出</a>
									</div>
								</div>
								<div class="chax_jiegnr">
									<table class="zizh_table1">
										<thead>
											<tr>
												<th style="width: 50px;">会员编号</th>
												<th style="width: 70px;">会员名</th>
												<th style="width: 70px;">手机号</th>
												<th style="width: 70px;">鼓励金</th>
												<th style="width: 70px;">累计购买</th>
												<th style="width: 70px;">我的分佣</th>
												<th style="width: 70px;">累计推广</th>
												<th style="width: 40px;">性别</th>
												<th style="width: 70px;">上级会员</th>
											</tr>
										</thead>
										<tbody id="tbody">
											{volist name="list" id="vo" empty="$empty"}
											<tr>
												<td>{$vo.id}</td>
												<td>{$vo.nickname}</td>
												<td>{$vo.mobile}</td>
												<td>{$vo.score}</td>
												<td>{if $vo.czs}{$vo.czs}{else}0{/if}</td>
												<td>{if $vo.scs}{$vo.scs}{else}0{/if}</td>"
												<td>
													<a href="javascript:;show_member({$vo['id']})">{if $vo.tjs}{$vo.tjs}{else}0{/if}</a>
												</td>
												<td>{$vo.sex}</td>
												<td>{$vo.smobile}</td>

											</tr>
											{/volist}
										</tbody>
									</table>
									<div class="fenye" style="display: block;">
										{$list->render()}
									</div>
								</div>
							</div>
						</div>
					</div>

				</div>
			</div>
		</div>
		{include file="public/footer" /}

	</body>

</html>
<script>
	function show_member(id) {
		var show_url = "{:url('accounts/show_user_member')}" + '?id=' + id;
		layer.open({
			type: 2,
			title: '成员列表',
			shadeClose: true,
			shade: 0.8,
			area: ['800px', '730px'],
			content: show_url
		});
	}

	$("#div_pingci .level_fl").click(function() {
		$("#div_pingci .level_fl").removeClass("active");
		$(this).addClass("active");
		$("#pingci").val($(this).data("id"));
	})
	$("#div_nengli .level_fl").click(function() {
		$("#div_nengli .level_fl").removeClass("active");
		$(this).addClass("active");
		$("#nengli").val($(this).data("id"));
	})

	//导出 
	function check() {
		var mobile = "{$vo.mobile}";
		window.location.href = "/oem/accounts/user_dcxml.html?mobile=" + mobile;
	}
</script>